<template>
  <div>
    <div class="table_one">
      <div class="btn_box">
        <ul>
          <li class="transfer">
            <button @click="dialogVisible01">
              <img src="" alt="" />
              <span>转移</span>
            </button>
          </li>
          <li>
            <button @click="dialogVisible02">
              <img src="" alt="" />
              <span>结转</span>
            </button>
          </li>
          <li>
            <button @click="dialogVisible03">
              <img src="" alt="" />
              <span>归档</span>
            </button>
          </li>
          <li>
            <button @click="dialogVisible04">
              <img src="" alt="" />
              <span>删除</span>
            </button>
          </li>
          <li>
            <button @click="dialogVisible05">
              <img src="" alt="" />
              <span>导出</span>
            </button>
          </li>
          <li>
            <el-input v-model="input" placeholder="请输入内容"></el-input>
            <button class="inquire">
              <img src="" alt="" />
              <span>查询</span>
            </button>
          </li>
        </ul>
        <!-- 转移 -->
        <el-dialog title="提示" :visible.sync="dialogVisible1" width="30%">
          <div class="one">
            <span>转移到:</span>
            <select name="" id="" class="xiaLa">
              <option value="aaa">111</option>
              <option value="aaa">22</option>
              <option value="aaa">333</option>
            </select>
          </div>
          <div class="two">
            <span>项目类别:</span>
            <el-radio-group v-model="form.resource">
              <el-radio label="一般性"></el-radio>
              <el-radio label="重点"></el-radio>
            </el-radio-group>
          </div>
          <span slot="footer" class="dialog-footer">
            <el-button size="small" @click="dialogVisible1 = false"
              >取 消</el-button
            >
            <el-button size="small" type="primary" @click="dialog"
              >确 定</el-button
            >
          </span>
        </el-dialog>
        <!-- 结账 -->
        <el-dialog
          close="Check"
          title="提示"
          :visible.sync="dialogVisible2"
          width="30%"
        >
          <div class="oneCheck">
            <span>转移:</span>
            <select name="" id="" class="xiaLa">
              <option value="aaa">111</option>
              <option value="aaa">22</option>
              <option value="aaa">333</option>
            </select>
          </div>
          <div class="twoCheck">
            <span>项目类别:</span>
            <el-radio-group v-model="form.resource">
              <el-radio label="一般性"></el-radio>
              <el-radio label="重点"></el-radio>
            </el-radio-group>
          </div>
          <div class="threeCheck">
            <span>结转年份:</span>
            <select name="" id="" class="xiaLa">
              <option value="aaa">111</option>
              <option value="aaa">22</option>
              <option value="aaa">333</option>
            </select>
          </div>
          <div class="fourCheck">
            <span>结转情况:</span>
            <select name="" id="" class="xiaLa">
              <option value="aaa">111</option>
              <option value="aaa">22</option>
              <option value="aaa">333</option>
            </select>
          </div>
          <span slot="footer" class="dialog-footer">
            <el-button size="small" @click="dialogVisible2 = false"
              >取 消</el-button
            >
            <el-button size="small" type="primary" @click="dialog1"
              >确 定</el-button
            >
          </span>
        </el-dialog>
        <!-- 归档  -->
        <el-dialog title="提示" :visible.sync="dialogVisible3" width="30%">
          <div class="one">
            <span>转移到:</span>
            <select name="" id="" class="xiaLa">
              <option value="aaa">111</option>
              <option value="aaa">22</option>
              <option value="aaa">333</option>
            </select>
          </div>
          <div class="two">
            <span>项目类别:</span>
            <el-radio-group v-model="form.resource">
              <el-radio label="一般性"></el-radio>
              <el-radio label="重点"></el-radio>
            </el-radio-group>
          </div>
          <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible3 = false">取 消</el-button>
            <el-button type="primary" @click="dialog2">确 定</el-button>
          </span>
        </el-dialog>
        <!-- 删除 -->
        <el-dialog title="提示" :visible.sync="dialogVisible4" width="30%">
          <span class="delete">你确定要删除选中的项目吗</span>
          <span slot="footer" class="dialog-footer">
            <el-button size="small" @click="dialogVisible4 = false"
              >取 消</el-button
            >
            <el-button size="small" type="primary" @click="dialog3"
              >确 定</el-button
            >
          </span>
        </el-dialog>
        <!-- 导出 -->
        <el-dialog title="提示" :visible.sync="dialogVisible5" width="30%">
          <span class="delete">你确定要导出选中的项目吗</span>
          <span slot="footer" class="dialog-footer">
            <el-button
              size="small"
              class="button"
              @click="dialogVisible5 = false"
              >取 消</el-button
            >
            <el-button
              size="small"
              class="button"
              type="primary"
              @click="dialog4"
              >确 定</el-button
            >
          </span>
        </el-dialog>

        <!-- 查询 -->
      </div>
      <!-- <div class="form_one">
        <el-table :data="tableData" style="width: 242">
          <el-table-column
            prop="project_name"
            label="项目名称"
            width="242"
          ></el-table-column>
          <el-table-column
            prop="Project_year"
            label="项目年度"
            width="242"
          ></el-table-column>
          <el-table-column
            prop="Project_deadline"
            label="项目期限"
            width="242"
          ></el-table-column>
          <el-table-column
            prop="Item_category"
            label="项目类别"
            width="242"
          ></el-table-column>
          <el-table-column
            prop="address"
            label="建设地址"
            width="242"
          ></el-table-column>
          <el-table-column
            prop="unit"
            label="实施单位"
            width="242"
          ></el-table-column>
          <el-table-column prop="status" label="状态" width="242">
            <el-button type="danger" round size="mini">审核中</el-button>
            <el-button type="primary" round size="mini">通过</el-button>
            <el-button type="info" round size="mini">未通过</el-button>
          </el-table-column>
        </el-table>
      </div> -->
      <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55"> </el-table-column>
        <el-table-column
          prop="project_name"
          label="项目名称"
          width="242"
        ></el-table-column>
        <el-table-column
          prop="Project_year"
          label="项目年度"
          width="242"
        ></el-table-column>
        <el-table-column
          prop="Project_deadline"
          label="项目期限"
          width="242"
        ></el-table-column>
        <el-table-column
          prop="Item_category"
          label="项目类别"
          width="242"
        ></el-table-column>
        <el-table-column
          prop="address"
          label="建设地址"
          width="242"
        ></el-table-column>
        <el-table-column
          prop="unit"
          label="实施单位"
          width="242"
        ></el-table-column>
        <el-table-column prop="status" label="状态" width="242">
          <el-button type="danger" round size="mini">审核中</el-button>
          <el-button type="primary" round size="mini">通过</el-button>
          <el-button type="info" round size="mini">未通过</el-button>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>
<script>
export default {
  name: "planningProject",
  data() {
    return {
      form: {
        region: "",
      },
      tableData: [
        {
          project_name: "卷钱跑路",
          Project_year: "卷钱跑路",
          Project_deadline: "卷钱跑路",
          Item_category: "卷钱跑路",
          address: "卷钱跑路",
          unit: "卷钱跑路",
          status: "卷钱跑路",
        },
      ],
      input: "",
      dialogVisible1: false,
      dialogVisible2: false,
      dialogVisible3: false,
      dialogVisible4: false,
      dialogVisible5: false,
    };
  },
  methods: {
    dialogVisible01() {
      this.dialogVisible1 = true;
    },
    dialogVisible02() {
      this.dialogVisible2 = true;
    },
    dialogVisible03() {
      this.dialogVisible3 = true;
    },
    dialogVisible04() {
      this.dialogVisible4 = true;
    },
    dialogVisible05() {
      this.dialogVisible5 = true;
    },

    dialog() {
      this.dialogVisible1 = false;
    },
    dialog1() {
      this.dialogVisible2 = false;
    },
    dialog2() {
      this.dialogVisible3 = false;
    },
    dialog3() {
      this.dialogVisible4 = false;
    },
    dialog4() {
      this.dialogVisible5 = false;
    },
  },
};
</script>
<style lang="less" scoped>
.table_one {
  width: 100%;
  height: 600px;
  background-color: #ffffff;
  border: 1px solid #b4b3b3;
  .btn_box {
    width: 100%;
    height: 45px;
    border-bottom: 1px dashed black;
    li {
      float: left;
      margin-left: 20px;
      button {
        width: 70px;
        height: 30px;
        border: 1px solid #5ca9d3;
        background-color: #5ca9d3;
        border-radius: 10px;
        margin-top: 5px;
      }
      span {
        color: #fff;
      }
    }
    .transfer {
      margin-left: 10px;
    }
    .xiaLa {
      width: 300px;
      height: 30px;
    }
    .inquire {
      margin-left: 1150px;
      margin-top: -17px;
      float: left;
    }
  }
  .form_one {
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
}
/deep/.el-dialog {
  margin-top: 30vh !important;
  .el-dialog__header {
    display: none;
  }
  .el-dialog__body {
    height: 150px;
  }
}
.one {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  span {
    margin-right: 12px;
  }
}
.two {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  span {
    margin-left: -165px;
    margin-right: 12px;
  }
}
.oneCheck {
  display: flex;
  justify-content: center;
  align-items: center;
  // margin-top: 10px;
  span {
    margin-left: 11px;
    margin-right: 12px;
  }
}
.twoCheck {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  span {
    margin-left: -165px;
    margin-right: 12px;
  }
}
.threeCheck {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  span {
    margin-left: -15px;
    margin-right: 12px;
  }
}
.fourCheck {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  span {
    margin-left: -15px;
    margin-right: 12px;
  }
}
/deep/.el-dialog__footer {
  display: flex;
  justify-content: center;
}
.button {
  border-radius: 30px;
  margin-left: 20px;
}
.delete {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/deep/ .el-input__inner {
  // float: left;
  margin-left: 890px;
  width: 250px;
  border: 1px solid #707070;
  background-color: #ffffff;
  position: absolute;
  top: -17px;
}
</style>